package org.dromara.hotel.domain.bo;

import org.dromara.hotel.domain.TerPriceCalendar;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.time.LocalDate;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 酒店日历价格业务对象 ter_price_calendar
 *
 * @author xch
 * @date 2025-06-10
 */
@Data
@AutoMapper(target = TerPriceCalendar.class, reverseConvertGenerate = false)
public class TerPriceCalendarBo {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 关联房型ID
     */
    @NotNull(message = "关联房型ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long roomId;

    /**
     * 价格日期
     */
    @NotNull(message = "价格日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private LocalDate priceDay;

    /**
     * 展示价格
     */
    @NotNull(message = "展示价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer finalPrice;

    /**
     * 价格来源
     */
    @NotNull(message = "价格来源不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer source;

    private Integer availableQuantity;
    private Integer version;

    private LocalDate startDate;
    private LocalDate endDate;
}
